import request from '@/utils/request';

// 获取车辆实时信息
export function getCarDetailInfoApi(carId, equipId) {
  return request({
    url: process.env.VUE_APP_BUS_SERVICE_NAME + 'api/realtimeinfo/getRealTimeInfo',
    method: 'get',
    params: {
      objectId: carId,
      equipId: equipId ? equipId : ''
    },
    disableLoading: true
  });
}

// 获取车辆实时信息
export function getCarAlarmInfoApi(data) {
  return request({
    url: process.env.VUE_APP_BUS_SERVICE_NAME + 'api/ottAlarmInfo/getListByPage',
    method: 'post',
    data: data
  });
}
